<template>
  <div class="LookLook">
    <p class="top">为你精选</p>
    <div class="LookLooks">
      <div class="goods" v-for="(goods, index) in goodslist" :key="index">
        <img :src="goods.img" />
        <div>
          <p>{{ goods.name }}</p>
          <p class="introduce">{{ goods.particulars }}</p>
          <span class="activity">{{goods.activity}}</span>
          <p class="price">￥{{ goods.price }}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import axios from "axios";
export default {
  name: "LookLook",
  data() {
    return {
      goodslist: "",
      goods: "",
    };
  },
  created() {
    axios({
      url: "/homeBottom",
    }).then((res) => {
      this.goodslist = res.data;
    });
  },
};
</script>

<style scoped>
/* @import url(../../assets/iconfont2/iconfont.css);  */
.top {
  height: 0.48rem;
  line-height: 0.48rem;
  margin-left: 0.27rem;
  font-size: 0.14rem;
  font-weight: 600;
}
.LookLooks {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  background-color: #eee;
  margin-top: .1rem;
}
.LookLooks .goods {
  width: 1.7rem;
  background-color: white;
  border-radius: 0.1rem 0.1rem 0 0;
  margin-bottom: 0.08rem;
}
.LookLooks .goods div {
  box-sizing: border-box;
  padding: 0.08rem;
}
.LookLooks .goods img {
  width: 1.71rem;
  border-radius: 0.1rem 0.1rem 0 0;

}
.goods p {
  font-size: 0.14rem;
  font-weight: 700;
}
.goods .price {
  font-weight: 500;
  font-size: 0.14rem;
}
.goods .introduce {
  font-size: 0.1rem;
  color: #9e9e9e;
  line-height: 0.2rem;
  font-weight: 400;
  margin-bottom: .04rem;
}
.goods .activity{
  display: inline-block;
  padding: .01rem;
   border: 1px solid #ec5500;
   border-radius: .03rem;
   color: #ec5500;
   font-size: .1rem;
   margin-bottom: 8px;
}
</style>


